import { Dropdown, Divider } from "antd";
const items = [
    {
        key: "male",
        label: "男",
    },
    {
        key: "female",
        label: "女",
    },
];
const View = () => {
    return (
        <>
            <Dropdown
                menu={{
                    items,
                }}
                placement='bottomLeft'
            >
                <a onClick={(e) => e.preventDefault()}>性别选择</a>
            </Dropdown>
            <Divider />
            <Dropdown
                menu={{
                    items,
                }}
                placement='bottomRight'
                trigger={["click"]}
            >
                <a onClick={(e) => e.preventDefault()}>性别选择</a>
            </Dropdown>
        </>
    );
};
export default View;
